package com.qf.controller;

import com.qf.pojo.resp.BaseResp;
import com.qf.service.PictureService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName BaseController
 * @Description TODO
 * @Author 非乐
 * @Date 2022/9/28 19:13
 * @Version 1.0
 **/
@RestController
@RequestMapping("base")
@Api(tags = "通用接口管理")
public class BaseController {

    @Autowired
    PictureService pictureService;

    @ApiOperation("获取轮播图")
    @GetMapping("imgList")
    public BaseResp imgList(){
        return pictureService.findList();
    }



}
